import time

from po.base.web_base_page import WebBasePage

class Shunt_jiayou_page(WebBasePage):


    # 业务操作  ---------搜索
    def sousuo_jiayou(self,chepai):
        #self.clickElement("chuli_button")
        time.sleep(1)
        self.clickElement("jiayou_button")
        self.inputByLocatorName("chuche_sousuo_input",chepai)
        self.clickElement("sousuo_button")
        time.sleep(1)
    # 业务操作  ---------编辑

    def bianji_jiayou(self,jiaypudj,jiayoul,bencilc,):
        self.clickElement("bianji_button")
        self.clear("danjia_input")
        self.inputByLocatorName("danjia_input",jiaypudj)
        time.sleep(1)
        self.clear("jiayoul_button")
        self.inputByLocatorName("jiayoul_button",jiayoul)
        self.clear("lichens_button")
        self.inputByLocatorName("lichens_button", bencilc)
        self.clickElement("jyry_button")
        time.sleep(1)
        self.clickElement("jyryxz_button")
        self.clickElement("jyqd_button")


    # 业务操作  ---------删除

    def del_jiayou(self):
        self.clickElement("xzjiayu_button")
        self.clickElement("jysc_button")
        self.quedingtc()

